﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using QLST_DTO;

namespace QLST_DAO
{
   public class CTHOADONDAO:TempDAO
    {
       public int Insert(CT_HOADON CTHD)
       {
           SqlParameter[] parameters = new SqlParameter[5];
           parameters[0] = new SqlParameter("@SoHoaDon", CTHD.SoHoaDon);
           parameters[1] = new SqlParameter("@MaHang", CTHD.MaHang);
           parameters[2] = new SqlParameter("@SoLuong", CTHD.SoLuong);
           parameters[3] = new SqlParameter("@DonGia", CTHD.DonGia);
           parameters[4] = new SqlParameter("@DVT", CTHD.DVT);
           int flag = dap.ExcuteProcedureWithReturn("st_InserCTHoaDon", parameters);
       
           return flag;
       }
    }
}
